<?php
/**
 * CreateUser: zlh
 * CreateTime: 2022/4/11 13:54
 * Remark:
 */

namespace App\Http\Requests\Approval;

use App\Http\Requests\BaseRequests;

class SendDingTalkApprovalPost extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'approvers_v2' => "required",
            'ding_talk_approval_template_id' => "required"
        ];
    }

    public function messages()
    {
        return [
            'approvers_v2.required' => "审批人不能为空",
            'ding_talk_approval_template_id.required' => '审批模板Id不能为空'
        ];
    }


}